<?php
/**
 * 文件下载
 */
require_once "./libHotUpdate.php";
$libHot = new libHotUpdate();

$token = $libHot->get("token");

if(!$token){
    $libHot->json([
        'code' => 2,
        'msg'  => "token解析错误"
    ]);
}
$path = $libHot->decrypt($token);
if(!$path){
    exit();
}
return $libHot->downLoadFile($path['url'],$path['path']);
